- main_toolbar do |t|
  = t.journal_entries_export resource, format: :csv, label: :journal_entries_export.ta, class: 'btn-download'
  - if resource.opened?
    = t.journal_entries_import resource, label: :journal_entries_import.ta, class: 'btn-upload'
    = t.notify_accountant resource, class: 'btn-envelope'
    = t.close(resource)

= main_informations do
  = attributes_list do |l|
    - l.attribute(:financial_year, url: true)
    - l.attribute(:started_on)
    - l.attribute(:stopped_on)
    - l.attribute(:closed_at)

= main_list(:journal_entries)
